package com.zheng.sms.rpc.api;

import java.util.LinkedHashMap;

public interface SmsSender {


    void sendTemplateSms(String mobile, String content);


    void sendTemplateSms(String mobile, LinkedHashMap<String,String> params);


    String sendVerifyCode(String mobile, int length);


    /**
     * 验证短信验证码
     *
     * @param mobile 手机号码
     * @param code   验证码
     * @param type   验证码类型
     * @return
     */
    boolean checkSmsCode(String mobile, String code, String type);


    void clearSmsCode(String mobile, String type);

}
